package com.hzz.framework.lock;

import com.hzz.framework.IdGenerator;
import com.hzz.framework.util.IdUtil;
import org.springframework.stereotype.Component;

@Component
public class IdGeneratorNext implements IdGenerator {
    @Override
    public long nextId() throws Exception {
        return IdUtil.nextId();
    }

    @Override
    public long nextId(String tab) throws Exception {
        return nextId();
    }

    @Override
    public long nextId(String tab, long shardId) throws Exception {
        return nextId();
    }
}
